// pages/detail/detail.js
Page({

  data: {
    commentList:[
      { content:'fnmdx',author:'老肥',like:32 },
      { content: '到此一游', author: '老肥', like: 12 },
      { content: 'mark', author: '老肥', like:3 }
      ],
    praiseFlag:true
  },
  clickToIndex:function(){
    wx.navigateBack({
      delta:1
    })
  },
  clickToPraise:function(){
    if(this.data.praiseFlag){
      this.setData({
        praiseFlag:false
      })
    }else{
      this.setData({
        praiseFlag: true
      })
    }
  }
})